package com.xunqi.mall.service;

import com.github.pagehelper.PageInfo;
import com.xunqi.mall.form.ShippingAddForm;
import com.xunqi.mall.vo.ResponseVo;

/**
 * @Description:
 * @Created with IntelliJ IDEA.
 * @author: 夏沫止水
 * @create: 2020-04-24 15:03
 **/
public interface ShippingService {

    /**
     * 添加收获地址
     * @param uid
     * @param form
     * @return
     */
    ResponseVo addShipping(Integer uid, ShippingAddForm form);


    /**
     * 删除用户收获地址
     * @param uid
     * @param shippingId
     * @return
     */
    ResponseVo deleteShipping(Integer uid,Integer shippingId);


    /**
     * 更新收获地址
     * @param uid
     * @param form
     * @return
     */
    ResponseVo updateShipping(Integer shippingId,Integer uid, ShippingAddForm form);


    /**
     * 分页显示收获地址信息
     * @param uid
     * @param pageNum
     * @param pageSize
     * @return
     */
    ResponseVo<PageInfo> shippingList(Integer uid,Integer pageNum,Integer pageSize);

}
